
package com.bei_en.teacher.admin.model.consultation.vo;

import java.util.*;
import com.bei_en.teacher.admin.model.consultation.bean.ConsultationComment;
import com.bei_en.teacher.admin.model.BaseVo;
import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import java.math.BigDecimal;

/**
 * 用于前端页面数据传递
 * 
 * @author Guocg
 * @date 2016-8-4 0:18:25
 */
public class ConsultationCommentVo extends BaseVo {

    private ConsultationComment consultationComment;

    public ConsultationCommentVo() {

    this.consultationComment = new ConsultationComment();
    }

    public ConsultationCommentVo(ConsultationComment consultationComment) {

    this.consultationComment = consultationComment;
    }
    
    public ConsultationComment getConsultationComment() {

    return this.consultationComment;
    }
    
    public void setConsultationComment(ConsultationComment consultationComment) {

    this.consultationComment=consultationComment;
    }

        public Integer getId() {
            return this.consultationComment.getId();
        }
        public void setId(Integer id) {
            this.consultationComment.setId(id);
        }
        
        public void setId(Integer value) {
    	this.consultationComment.setId(value);
        }
	
    public Integer getId() {
        return this.consultationComment.getId();
    }
        
        public void setUserId(Integer value) {
    	this.consultationComment.setUserId(value);
        }
	
    public Integer getUserId() {
        return this.consultationComment.getUserId();
    }
        
        public void setCommentPeople(Integer value) {
    	this.consultationComment.setCommentPeople(value);
        }
	
    public Integer getCommentPeople() {
        return this.consultationComment.getCommentPeople();
    }
        
        public void setConsultationId(Integer value) {
    	this.consultationComment.setConsultationId(value);
        }
	
    public Integer getConsultationId() {
        return this.consultationComment.getConsultationId();
    }
        
        public void setContent(String value) {
    	this.consultationComment.setContent(value);
        }
	@Length(max=255)
    public String getContent() {
        return this.consultationComment.getContent();
    }
        
    public void setCreateTime(Date value) {
        this.consultationComment.setCreateTime(value!=null ? (int) (value.getTime()/1000) : 0);
    }

	 public Date getCreateTime() {
	     Integer time=this.consultationComment.getCreateTime();
	     if (time!=null&&time!=0)
		    return new Date(Long.valueOf(time)*1000);
		else
		    return null;
	    }
    


}